home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-04-05 | 8.8 KB | 241 lines | [ttro/ttxt] |
-
- Seagate Drives and SF&I
-
- In response to a query of mine regarding information on interfacing the
- Seagate ST277N drive to the Mac using the shareware version of Ephraim
- Vishniac's SCSI Formatter and Installer (SF&I) program, several people
- expressed a desire for this information to be posted to the net. I am
- posting this in response to these requests.
-
- Disclaimer: The following information is based on my experience (read:
- "n of one") with the ST277N and SF&I version 1.0, obtained from sumex.
- The drive is installed on a MacPlus with version 2 ROM, and has also
- been briefly used with a MacII. Information on the ST277N was obtained
- from the "Seagate SCSI Interface Manual", 36021-001, Revision B,
- of November 20, 1986. That manual is currently in the process of being
- reprinted, and I presume, revised. Although I have not used SF&I with
- other Seagate SCSI drives, they should behave similarly to the ST277N,
- the only exception being the block size of the drive.
-
- SF&I has apparantly been replaced by a commercial version. I have not
- used or seen this product, and the comments here apply only to the
- above shareware version. Anyone planning to interface their own disk
- to a Mac should consider this program, as well as other commercial
- SCSI device driver programs. In addition, recent comments from another
- net indicate that the Apple HD setup program can also be used with
- the ST277N after modification. I have not tried this and cannot
- comment on it. In addition, there were articles in "Computer Shopper"
- on this subject in early Fall of 1988. I am NOT responsible for
- your drive, your computer, or your software.
-
- Basics: See the SF&I documentation for full details. SF&I is a
- formatter/installer program based on the generic Apple SCSI driver
- distributed in the Software Supplement. User-alterable resources contain
- information for specific SCSI commands used by the program to set the drive
- up correctly - these resources describing these commands are of type "SCMD"
- and are identified by NAME, not by number. Data to be sent along with the
- command are described by a resource of type "HEXA","DDM", or "DPM"
- identified by number. ResEdit templates for these resources are included
- with SF&I, along with two versions of the driver itself, which is also
- installed as a resource.
-
- The following is a desciption of the SCMD and HEXA resources which
- I used.
-
- "MODE" SCMD. This is for the Mode Select command, which is particularly
- important for the Seagate drive, to turn off the "Unit Attention" feature.
- This feature, while standard for current SCSI drives, causes problems for
- BOTH the MacPlus and MacII: the MacPlus (with old ROMs) will never find a
- drive that goes into Unit Attention on reset, while the MacII will find it,
- but will preferentially boot off another drive which does not have this
- feature, regardless of SCSI device number.
-
- SCMD Name: "Mode"
- SCMD ID: 134 (number as you wish)
- SCMD Content:
- Xfer Size: -16 (16 bytes of data TO the drive)
- Xfer Incr: 1
- Data Res Type: HEXA
- Data Res #: 129
- Ticks: 600
- Command Length: 6 (bytes)
- Command sequence:
- $15 (opcode)
- $00 (LUN/reserved)
- $00 (reserved)
- $00 (reserved)
- $10 (parameter list length = 16 bytes of data)
- $00 (reserved/flag/link)
-
- HEXA Name: "Mode Data" (call it what you wish)
- HEXA ID: 129 (must be same as you specified in the SCMD)
- HEXA Content: (16 bytes)
- $00 (reserved)
- $00 (medium type)
- $00 (reserved)
- $08 (block descriptor length)
- $00 $00 $00 $00 $00 $00 $00 $00 (null block descriptor)
- $00 (page descriptor code)
- $02 (page length of operating parameters)
- $10 (operating parameter - bit 4 turns OFF Unit Attention)
- $00 (device type qualifier)
-
- "SENSE" SCMD. This is the "Request Sense" command. The only real variation
- here is the number of sense bytes sent by the drive. The maximum number of
- sense bytes returned is 22 for extended sense, or 27 with usage counters
- operational, but the ST277N works fine if you specify 0, which defaults to
- a non-extended sense byte length of 4.
-
- SCMD Name: "Sense"
- SCMD ID: 128 (number as you wish)
- SCMD Content:
- Xfer Size: 4 (we receive the 4 nonextended sense bytes)
- Xfer Incr: 1
- Data Res Type: (there is none)
- Data Res #: 0 (there is none)
- Ticks: 60
- Command Length: 6 (bytes)
- Command sequence:
- $03 (opcode)
- $00 (LUN/reserved)
- $00 (reserved)
- $00 (reserved)
- $00 (allocation length - we specify 0 for nonextended sense)
- $00 (reserved/flag/link)
-
- "FORMAT" SCMD. This is the formatting command. The options here are the
- defect list format and the interleave. I used the same defect list format
- as the supplied SCMD, which specifies to use the manufacturer's defect list
- only, with no additions supplied. You may want to vary this, but you should
- consult the Seagate manual for details. For interleave, 3 appears appropriate
- for a MacPlus, with 2 for a MacII. You can experiment with the SCSI evaluator
- to find what is best for your drive.
-
- SCMD Name: "Format"
- SCMD ID: 129 (number as you wish)
- SCMD Content:
- Xfer Size: -4 (4 bytes of format data TO the drive)
- Xfer Incr: 1
- Data Res Type: HEXA
- Data Res #: 128
- Ticks: 18000
- Command Length: 6 (bytes)
- Command sequence:
- $04 (opcode)
- $18 (FMT DATA = 1, Defect List Format = 100b)
- $00 (reserved)
- $00 (interleave MSB)
- $03 (interleave LSB) (2 for MacII)
- $00 (reserved/flag/link)
-
- HEXA Name: "Format Data" (call it what you wish)
- HEXA ID: 128 (must be same as you specified in the SCMD)
- HEXA Content: (16 bytes)
- $00 (reserved)
- $00 (FOV/RSRV/DCRT/STPF/reserved)
- $00 (defect list length MSB)
- $00 (defect list length LSB)
-
- "Driver" SCMD. This command writes the driver to the drive. It is
- essentially the same as that supplied with SF&I. Both drivers appear to work
- with the ST277N, but I chose the "Vanilla Driver". The SCMD description of
- each is the same - to change drivers, simply swap the SDRV resource.
-
- SCMD Name: "Driver"
- SCMD ID: 133 (number as you wish)
- SCMD Content:
- Xfer Size: -2048 (takes up 4 blocks, transferred TO the drive)
- Xfer Incr: 512
- Data Res Type: SDRV
- Data Res #: 128
- Ticks: 300
- Command Length: 6 (bytes)
- Command sequence:
- $0A (opcode for write)
- $00 (LUN/address MSB)
- $00 (address)
- $02 (address LSB) (driver begins on block #2)
- $04 (transfer length) (4 blocks)
- $00 (reserved/flag/link)
-
- SDRV Name: "Format Data" (call it what you wish)
- SDRV ID: 128 (must be same as you specified in the SCMD)
- SDRV Content: (insert either driver)
-
- "DDM" SCMD. This is the command to write the device descriptor map to
- the drive. It is essentially the same as that supplied. The actuall DDM
- must be modified for your drive size.
-
- SCMD Name: "DDM"
- SCMD ID: 131 (number as you wish)
- SCMD Content:
- Xfer Size: -512 (takes up 1 blocks, transferred TO the drive)
- Xfer Incr: 512
- Data Res Type: DDM
- Data Res #: 128
- Ticks: 300
- Command Length: 6 (bytes)
- Command sequence:
- $0A (opcode) (this is a write)
- $00 (LUN/address MSB)
- $00 (address)
- $00 (address LSB) (DDM is block 0)
- $01 (transfer length) (1 blocks)
- $00 (reserved/flag/link)
-
- DDM Name: "Format Data" (call it what you wish)
- DDM ID: 128 (must be same as you specified in the SCMD)
- DDM Content:
- DDM Sig: $4552
- Block Size: 512
- Drive Size: 126790 (blocks) (for ST277N - see manual for other drives)
- Dev Type: $0000
- Dev ID: $0000
- Data Start: 0
- Driver Count: 1
- Driver Block: 2
- Driver Size: 3
- Driver Type: $0001
-
- "DPM" SCMD. This command writes the device partition map to the drive.
- It is modified for drive size only.
-
- SCMD Name: "DPM"
- SCMD ID: 132 (number as you wish)
- SCMD Content:
- Xfer Size: -512 (takes up 1 blocks, transferred TO the drive)
- Xfer Incr: 512
- Data Res Type: DPM
- Data Res #: 128
- Ticks: 300
- Command Length: 6 (bytes)
- Command sequence:
- $0A (opcode) (this is a write)
- $00 (LUN/address MSB)
- $00 (address)
- $01 (address LSB) (DPM is block 1)
- $01 (transfer length) (1 blocks)
- $00 (reserved/flag/link)
-
- DPM Name: "Format Data" (call it what you wish)
- DPM ID: 128 (must be same as you specified in the SCMD)
- DPM Content:
- DPM Sig: $5453
- Start Block: 8 (8 reserved blocks for DPM, DDM, driver)
- Length: 126782 (drive size - 8 reserved blocks)
- Signature: TFS1
-
- "Verify" SCMD. Not needed and not used.
-
- Ken Mitchum KY3B
- Decision Systems Laboratories
- University of Pittsburgh
- km@cadre.dsl.pittsburgh.edu
-
-
-
-
-
-
-
-